clear all

use Ma_LF.dta

****************
** Tab 2
****************

** farm size
gen crp1_vpm=crp1_v*1000/crp1_culs
sum crp1_vpm if lf_on==1 & culs!=0 & lf_id!=52 & lf_on==1 & culs>29, detail

** exclue farms with values at two tails
sum culs if lf_on==1 & culs!=0 & lf_id!=52 & lf_on==1 & culs>29 & crp1_vpm<=13735 & crp1_vpm>=800

** cost of using harvesters
** crp1_hvtby==1: using own machinery
sum crp1_hvtc if lf_on==1 & lf_id!=52 & crp1_culs>=10 & crp1_culs!=0 & crp1_sl!=0 & crp1_hvtc!=0 & crp1_hvtby!=1
sum crp1_hvtc if lf_on==1 & lf_id!=52 & crp1_culs>=10 & crp1_culs!=0 & crp1_sl!=0 & crp1_hvtc!=0 & crp1_hvtby==1


